package com.zyj.myapplication.Service;


import com.zyj.myapplication.Javabean.Activity;
import com.zyj.myapplication.Javabean.ActivityInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;


/**
 * Created by Administrator on 2017/9/29.
 */

public interface ActivityService {
    //获取活动列表
    @GET("lists/mod/activity")
    Call<List<Activity>>getActivityList();
    //获取活动详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
    Call<ActivityInfo>getActivityinfo(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //活动报名
    @GET("create/mod/{mod}/participantname/{participantname}/act_id/{act_id}/participanttel/{participanttel}/" +
            "adultnum/{adultnum}/studentnum/{studentnum}/paytype/{paytype}/pay/{pay}/paynotice/{paynotice}/" +
            "insurance/{insurance}" +
            "/userid/{userid}/SessionID/{SessionID}")
    Call<Integer> signAct(
            @Path("mod") String mod,
            @Path("participantname") String participantname,
            @Path("act_id") String act_id,
            @Path("participanttel") String participanttel ,
            @Path("adultnum") String adultnum,
            @Path("studentnum")String studentnum,
            @Path("paytype") String paytype,
            @Path("pay") String pay,
            @Path("paynotice") String paynotice,
            @Path("insurance") String insurance,
            @Path("userid") int userid,
            @Path("SessionID") String SessionID
    );

}
